<svg
  width="120"
  height="120"
  viewBox="0 0 120 120"
  xmlns="http://www.w3.org/2000/svg"
>
  <rect class="rect" x="10" y="10" fill="red" width="100" height="100" />
  <foreignObject
    x="20"
    y="20"
    width="120"
    height="120"
    requiredExtensions="http://www.w3.org/1999/xhtml"
  >
    <span
      style="display: inline-block; width: 32px; height: 32px; background: red;"
    />
  </foreignObject>
</svg>
